namespace ZR.Model.Models.ProductionControl
{
    /// <summary>
    /// 工位验证
    /// </summary>
    [SugarTable("station_verification_config")]
    public class StationVerificationConfig : BaseEntity
    {
        /// <summary>
        /// 序号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
        public int Id { get; set; }

        /// <summary>
        /// 版本
        /// </summary>
        public int? Version { get; set; }

        /// <summary>
        /// 产线代号
        /// </summary>
        [SugarColumn(ColumnName = "line_code")]
        public string LineCode { get; set; }

        /// <summary>
        /// 产品类型
        /// </summary>
        [SugarColumn(ColumnName = "product_type")]
        public string ProductType { get; set; }

        /// <summary>
        /// 工位排序
        /// </summary>
        [SugarColumn(ColumnName = "process_rank")]
        public int? ProcessRank { get; set; }

        /// <summary>
        /// 工位号
        /// </summary>
        [SugarColumn(ColumnName = "station_code")]
        public string StationCode { get; set; }

        /// <summary>
        /// 上工位
        /// </summary>
        [SugarColumn(ColumnName = "upper_station")]
        public string UpperStation { get; set; }

        /// <summary>
        /// 下工位
        /// </summary>
        [SugarColumn(ColumnName = "lower_station")]
        public string LowerStation { get; set; }

        /// <summary>
        /// 是否是首道工序（0：否，1：是）
        /// </summary>
        [SugarColumn(ColumnName = "online_station")]
        public string OnlineStation { get; set; }

        /// <summary>
        /// 是否是下线工序（0：否，1：是）
        /// </summary>
        [SugarColumn(ColumnName = "offline_station")]
        public string OfflineStation { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "creation_time")]
        public DateTime? CreationTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "creator_name")]
        public string CreatorName { get; set; }
    }
}